package psa;

import java.io.File;

import org.unt.genlogic.Files;

public class FileContainText {

	public static void main(String[] args) {
		System.out.println(fileContainsText(new File("C:/User/U336654/jip-data/sitePublish/ab100"), "sourceEncoding"));
	}

	public static boolean fileContainsText(File file, String text) {

		if (file.exists()) {
			String fileContents = Files.readFileAsString(file);
			if (fileContents.indexOf(text) > -1)
				return true;
		}

		return false;
	}
}
